<?php
$tdatauser_pereferences=array();
	$tdatauser_pereferences[".NumberOfChars"]=80; 
	$tdatauser_pereferences[".ShortName"]="user_pereferences";
	$tdatauser_pereferences[".OwnerID"]="";
	$tdatauser_pereferences[".OriginalTable"]="user_pereferences";


	
//	field labels
$fieldLabelsuser_pereferences = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsuser_pereferences["English"]=array();
	$fieldToolTipsuser_pereferences["English"]=array();
	$fieldLabelsuser_pereferences["English"]["id"] = "Id";
	$fieldToolTipsuser_pereferences["English"]["id"] = "";
	$fieldLabelsuser_pereferences["English"]["value"] = "Value";
	$fieldToolTipsuser_pereferences["English"]["value"] = "";
	$fieldLabelsuser_pereferences["English"]["perference_id"] = "Perference";
	$fieldToolTipsuser_pereferences["English"]["perference_id"] = "";
	if (count($fieldToolTipsuser_pereferences["English"])){
		$tdatauser_pereferences[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsuser_pereferences["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsuser_pereferences["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsuser_pereferences["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsuser_pereferences["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsuser_pereferences["Chinese (Hong Kong S.A.R.)"]["value"] = "Value";
	$fieldToolTipsuser_pereferences["Chinese (Hong Kong S.A.R.)"]["value"] = "";
	$fieldLabelsuser_pereferences["Chinese (Hong Kong S.A.R.)"]["perference_id"] = "Perference Id";
	$fieldToolTipsuser_pereferences["Chinese (Hong Kong S.A.R.)"]["perference_id"] = "";
	if (count($fieldToolTipsuser_pereferences["Chinese (Hong Kong S.A.R.)"])){
		$tdatauser_pereferences[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsuser_pereferences["Chinese (Taiwan)"]=array();
	$fieldToolTipsuser_pereferences["Chinese (Taiwan)"]=array();
	$fieldLabelsuser_pereferences["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsuser_pereferences["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsuser_pereferences["Chinese (Taiwan)"]["value"] = "Value";
	$fieldToolTipsuser_pereferences["Chinese (Taiwan)"]["value"] = "";
	$fieldLabelsuser_pereferences["Chinese (Taiwan)"]["perference_id"] = "Perference Id";
	$fieldToolTipsuser_pereferences["Chinese (Taiwan)"]["perference_id"] = "";
	if (count($fieldToolTipsuser_pereferences["Chinese (Taiwan)"])){
		$tdatauser_pereferences[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsuser_pereferences["French"]=array();
	$fieldToolTipsuser_pereferences["French"]=array();
	$fieldLabelsuser_pereferences["French"]["id"] = "Id";
	$fieldToolTipsuser_pereferences["French"]["id"] = "";
	$fieldLabelsuser_pereferences["French"]["value"] = "Value";
	$fieldToolTipsuser_pereferences["French"]["value"] = "";
	$fieldLabelsuser_pereferences["French"]["perference_id"] = "Perference Id";
	$fieldToolTipsuser_pereferences["French"]["perference_id"] = "";
	if (count($fieldToolTipsuser_pereferences["French"])){
		$tdatauser_pereferences[".isUseToolTips"]=true;
	}
}


	
	$tdatauser_pereferences[".NCSearch"]=true;

	

$tdatauser_pereferences[".shortTableName"] = "user_pereferences";
$tdatauser_pereferences[".nSecOptions"] = 0;
$tdatauser_pereferences[".recsPerRowList"] = 1;	
$tdatauser_pereferences[".tableGroupBy"] = "0";
$tdatauser_pereferences[".mainTableOwnerID"] = "";
$tdatauser_pereferences[".moveNext"] = 1;




$tdatauser_pereferences[".showAddInPopup"] = false;

$tdatauser_pereferences[".showEditInPopup"] = false;

$tdatauser_pereferences[".showViewInPopup"] = false;


$tdatauser_pereferences[".fieldsForRegister"] = array();

$tdatauser_pereferences[".listAjax"] = true;

	$tdatauser_pereferences[".audit"] = false;

	$tdatauser_pereferences[".locking"] = false;
	
$tdatauser_pereferences[".listIcons"] = true;
$tdatauser_pereferences[".edit"] = true;
$tdatauser_pereferences[".inlineEdit"] = true;
$tdatauser_pereferences[".view"] = true;

$tdatauser_pereferences[".exportTo"] = true;

$tdatauser_pereferences[".printFriendly"] = true;

$tdatauser_pereferences[".delete"] = true;

$tdatauser_pereferences[".showSimpleSearchOptions"] = true;

$tdatauser_pereferences[".showSearchPanel"] = true;


$tdatauser_pereferences[".isUseAjaxSuggest"] = true;

$tdatauser_pereferences[".rowHighlite"] = true;


// button handlers file names

$tdatauser_pereferences[".addPageEvents"] = false;

$tdatauser_pereferences[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatauser_pereferences[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatauser_pereferences[".isUseTimeForSearch"] = false;

$tdatauser_pereferences[".isUseiBox"] = false;



$tdatauser_pereferences[".isUseInlineAdd"] = true;

$tdatauser_pereferences[".isUseInlineEdit"] = true;
$tdatauser_pereferences[".isUseInlineJs"] = $tdatauser_pereferences[".isUseInlineAdd"] || $tdatauser_pereferences[".isUseInlineEdit"];

$tdatauser_pereferences[".allSearchFields"] = array();

$tdatauser_pereferences[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatauser_pereferences[".allSearchFields"]))
{
	$tdatauser_pereferences[".allSearchFields"][] = "id";	
}
$tdatauser_pereferences[".globSearchFields"][] = "value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("value", $tdatauser_pereferences[".allSearchFields"]))
{
	$tdatauser_pereferences[".allSearchFields"][] = "value";	
}
$tdatauser_pereferences[".globSearchFields"][] = "perference_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("perference_id", $tdatauser_pereferences[".allSearchFields"]))
{
	$tdatauser_pereferences[".allSearchFields"][] = "perference_id";	
}


$tdatauser_pereferences[".googleLikeFields"][] = "id";
$tdatauser_pereferences[".googleLikeFields"][] = "value";
$tdatauser_pereferences[".googleLikeFields"][] = "perference_id";



$tdatauser_pereferences[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatauser_pereferences[".allSearchFields"])) 
{
	$tdatauser_pereferences[".allSearchFields"][] = "id";	
}
$tdatauser_pereferences[".advSearchFields"][] = "value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("value", $tdatauser_pereferences[".allSearchFields"])) 
{
	$tdatauser_pereferences[".allSearchFields"][] = "value";	
}
$tdatauser_pereferences[".advSearchFields"][] = "perference_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("perference_id", $tdatauser_pereferences[".allSearchFields"])) 
{
	$tdatauser_pereferences[".allSearchFields"][] = "perference_id";	
}

$tdatauser_pereferences[".isTableType"] = "list";


	

$tdatauser_pereferences[".isDisplayLoading"] = true;

$tdatauser_pereferences[".isResizeColumns"] = false;





$tdatauser_pereferences[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatauser_pereferences[".strOrderBy"] = $gstrOrderBy;
	
$tdatauser_pereferences[".orderindexes"] = array();

$tdatauser_pereferences[".sqlHead"] = "SELECT id,   `value`,   perference_id";
$tdatauser_pereferences[".sqlFrom"] = "FROM user_pereferences";
$tdatauser_pereferences[".sqlWhereExpr"] = "";
$tdatauser_pereferences[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatauser_pereferences[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatauser_pereferences[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatauser_pereferences[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "user_pereferences";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatauser_pereferences["id"]=$fdata;
//	value
	$fdata = array();
	$fdata["strName"] = "value";
	$fdata["ownerTable"] = "user_pereferences";
		$fdata["Label"]="Value"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "value";
	
		$fdata["FullName"]= "`value`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatauser_pereferences["value"]=$fdata;
//	perference_id
	$fdata = array();
	$fdata["strName"] = "perference_id";
	$fdata["ownerTable"] = "user_pereferences";
		$fdata["Label"]="Perference"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "perference_id";
	
		$fdata["FullName"]= "perference_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatauser_pereferences["perference_id"]=$fdata;

	
$tables_data["user_pereferences"]=&$tdatauser_pereferences;
$field_labels["user_pereferences"] = &$fieldLabelsuser_pereferences;
$fieldToolTips["user_pereferences"] = &$fieldToolTipsuser_pereferences;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["user_pereferences"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["user_pereferences"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto473=array();
$proto473["m_strHead"] = "SELECT";
$proto473["m_strFieldList"] = "id,   `value`,   perference_id";
$proto473["m_strFrom"] = "FROM user_pereferences";
$proto473["m_strWhere"] = "";
$proto473["m_strOrderBy"] = "";
$proto473["m_strTail"] = "";
$proto474=array();
$proto474["m_sql"] = "";
$proto474["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto474["m_column"]=$obj;
$proto474["m_contained"] = array();
$proto474["m_strCase"] = "";
$proto474["m_havingmode"] = "0";
$proto474["m_inBrackets"] = "0";
$proto474["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto474);

$proto473["m_where"] = $obj;
$proto476=array();
$proto476["m_sql"] = "";
$proto476["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto476["m_column"]=$obj;
$proto476["m_contained"] = array();
$proto476["m_strCase"] = "";
$proto476["m_havingmode"] = "0";
$proto476["m_inBrackets"] = "0";
$proto476["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto476);

$proto473["m_having"] = $obj;
$proto473["m_fieldlist"] = array();
						$proto478=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "user_pereferences"
));

$proto478["m_expr"]=$obj;
$proto478["m_alias"] = "";
$obj = new SQLFieldListItem($proto478);

$proto473["m_fieldlist"][]=$obj;
						$proto480=array();
			$obj = new SQLField(array(
	"m_strName" => "value",
	"m_strTable" => "user_pereferences"
));

$proto480["m_expr"]=$obj;
$proto480["m_alias"] = "";
$obj = new SQLFieldListItem($proto480);

$proto473["m_fieldlist"][]=$obj;
						$proto482=array();
			$obj = new SQLField(array(
	"m_strName" => "perference_id",
	"m_strTable" => "user_pereferences"
));

$proto482["m_expr"]=$obj;
$proto482["m_alias"] = "";
$obj = new SQLFieldListItem($proto482);

$proto473["m_fieldlist"][]=$obj;
$proto473["m_fromlist"] = array();
												$proto484=array();
$proto484["m_link"] = "SQLL_MAIN";
			$proto485=array();
$proto485["m_strName"] = "user_pereferences";
$proto485["m_columns"] = array();
$proto485["m_columns"][] = "id";
$proto485["m_columns"][] = "value";
$proto485["m_columns"][] = "perference_id";
$obj = new SQLTable($proto485);

$proto484["m_table"] = $obj;
$proto484["m_alias"] = "";
$proto486=array();
$proto486["m_sql"] = "";
$proto486["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto486["m_column"]=$obj;
$proto486["m_contained"] = array();
$proto486["m_strCase"] = "";
$proto486["m_havingmode"] = "0";
$proto486["m_inBrackets"] = "0";
$proto486["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto486);

$proto484["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto484);

$proto473["m_fromlist"][]=$obj;
$proto473["m_groupby"] = array();
$proto473["m_orderby"] = array();
$obj = new SQLQuery($proto473);

$queryData_user_pereferences = $obj;
$tdatauser_pereferences[".sqlquery"] = $queryData_user_pereferences;

$tableEvents["user_pereferences"] = new eventsBase;

?>
